#include <iostream>
using namespace std;
int swap1(int *num1,int *num2){
    int temp = *num1;
    *num1=*num2;
    *num2=temp;


    return 1;
}
int swap2(int &num1,int &num2){
    int temp = num1;
    num1 = num2;
    num2 = temp;
    return 1;
}
int main()
{
    int num =10;
    int  &num2=num;
   // cout<<"num:"<<num<<"&num:"<<&num<<endl<<"num2:"<<num2<<"&num2:"<<&num2<<endl;
    

    int num3=200;
    //num2 = num3;
    cout<<"num3:"<<&num3<<endl;
    cout<<"num:"<<num<<"&num:"<<&num<<endl<<"num2:"<<num2<<"&num2:"<<&num2<<endl;
   // swap1(&num,&num3);
    swap2(num,num3);
    cout<<"num:"<<num<<"num3:"<<num3<<endl;
    //cout << "Hello world" << endl;
    return 0;
}

